-- GENERATED SPELL FOR [Warsong Grunt] --


function spell0_11682(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11682', 608, 1)
end

function spell1_11682(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11682', 8281, 1)
end

function Sorts_11682(pUnit, Event)
local choix_sorts_11682 = math.random(0, 1)
if choix_sorts_11682 == 0 then
pUnit:RegisterEvent('spell0_11682', 1, 1)
end
if choix_sorts_11682 == 1 then
pUnit:RegisterEvent('spell1_11682', 1, 1)
end
end

function mob11682_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11682', math.random(1500, 3000), 1)
end

function mob11682_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11682_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11682_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11682, 1, 'mob11682_Action')
RegisterUnitEvent(11682, 2, 'mob11682_Leave')
RegisterUnitEvent(11682, 3, 'mob11682_Kill')
RegisterUnitEvent(11682, 4, 'mob11682_Die')
